package zeng.glogo.learn;

import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.nio.file.StandardOpenOption;
import java.util.Map;
import java.util.Properties;

public class AAA {

	public static void main(String[] args) {
		System.out.println("polygenelubricants".hashCode());
		System.out.println((int)-2e31);
		
//		Map<String,String> envMap = System.getenv();
//		for(String key:envMap.keySet()){
//			String value = envMap.get(key);
//			System.out.println(key + " = " + value);
//		}
//		System.out.println();
		
		System.setProperty("java.rmi.server.username", "192.168.1.100");
		System.out.println(System.getProperty("java.rmi.server.username"));
		
		Properties p = System.getProperties();
		for(Object key:p.keySet()){
			String value = p.getProperty(key+"");
			System.out.println(key + " = " + value);
		}
		
		try {
			FileChannel fc = FileChannel.open(Paths.get(""), StandardOpenOption.CREATE);
//			fc.write(null, 1023);
			System.out.println("\n" + fc.size());
			ByteBuffer bf = ByteBuffer.allocate(10);
			
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
